//
//  XFDViewController.m
//  XFDHomeWorkPlatfrom
//
//  Created by GL-ZHU on 11/02/2017.
//  Copyright (c) 2017 GL-ZHU. All rights reserved.
//

#import "XFDViewController.h"
#import "XFDNodeMenu.h"


@interface XFDViewController ()

@end

@implementation XFDViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    NSArray *titles = @[@"已逾期",@"待上报",@"作业中",@"已完成"];
    CGRect rect = CGRectMake(0, 200, self.view.frame.size.width, 180);
    XFDNodeMenu *menu = [XFDNodeMenu nodeMenuTitle:@"任务" nodes:^(UIImageView *topLeftImg, NSArray<UIButton *> *btns) {
        
    } andTitles:titles frame:rect];
    menu.backgroundColor = [UIColor greenColor];
    [self.view addSubview:menu];
}

@end
